<?
phpinfo();
exit();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<script type="text/javascript">
var oTime = {
	Diff:function(begin,end)
	{
		var time=Math.floor((new Date()).getTime()/1000);
		begin = begin || time;
		end = end || time;
		return end - begin;
	},
	write:function(arr,time,auto)
	{
		var tmp = this.Diff(0,time);
		var str = this.tostr(tmp);
		if (!(arr instanceof Array)) arr = [arr];
		for (var i=0;i<arr.length;i++)
		{
			tmp = _.e(arr[i]);
			if(typeof tmp == "object") 
				tmp.innerHTML = str;
		}
	},
	tostr:function(time)
	{
		return [Math.floor(time/86400),"天",Math.floor((time%86400)/3600),"小时",Math.floor((time%3600)/60),"分",(time%60),"秒"].join('');
	}
}
</script><br />
<script type="text/javascript">
document.write(oTime.tostr(1200813603));
</script><br />
</body>
</html>
